package com.cms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cms.dao.mapper.MenuManagerMapper;
import com.cms.exception.SystemDBException;
import com.cms.model.TrMenu;
import com.cms.service.MenuManagerService;

@Service
public class MenuManagerServiceImpl implements MenuManagerService{

	@Autowired
	private MenuManagerMapper menuManagerMapper;
	
	@Override
	public void saveMenu(TrMenu menu) throws SystemDBException {
		menuManagerMapper.saveMenu(menu);		
	}

	@Override
	public void updateMenu(TrMenu menu) throws SystemDBException {
		menuManagerMapper.updateMenu(menu);		
	}

	@Override
	public void deleteMenu(TrMenu menu) throws SystemDBException {
		menuManagerMapper.deleteMenu(menu);
	}

	@Override
	public TrMenu getMenuInfo(TrMenu menu) {
		return menuManagerMapper.getMenuInfo(menu);
	}

	@Override
	public List<TrMenu> queryMenu(TrMenu menu) {
		return menuManagerMapper.queryMenu(menu);
	}

}
